package com.sdhs.costcontrol.mapper;

import java.math.BigDecimal;
import java.util.List;

import com.sdhs.costcontrol.domain.GcControlManagementCostMaintenance;

/**
 * 管理成本维护Mapper接口
 * 
 * @author wanglei
 * @date 2025-03-12
 */
public interface GcControlManagementCostMaintenanceMapper 
{
	/**
	 * 累计费用不能超过管理成本上限
	 * 累计费用求和
	 * @param gcControlManagementCostMaintenance
	 * @return
	 */
	public BigDecimal selectCostSum(GcControlManagementCostMaintenance gcControlManagementCostMaintenance);
	
    /**
     * 查询管理成本维护
     * 
     * @param id 管理成本维护主键
     * @return 管理成本维护
     */
    public GcControlManagementCostMaintenance selectGcControlManagementCostMaintenanceById(Long id);

    /**
     * 查询管理成本维护列表
     * 
     * @param gcControlManagementCostMaintenance 管理成本维护
     * @return 管理成本维护集合
     */
    public List<GcControlManagementCostMaintenance> selectGcControlManagementCostMaintenanceList(GcControlManagementCostMaintenance gcControlManagementCostMaintenance);

    /**
     * 新增管理成本维护
     * 
     * @param gcControlManagementCostMaintenance 管理成本维护
     * @return 结果
     */
    public int insertGcControlManagementCostMaintenance(GcControlManagementCostMaintenance gcControlManagementCostMaintenance);

    /**
     * 修改管理成本维护
     * 
     * @param gcControlManagementCostMaintenance 管理成本维护
     * @return 结果
     */
    public int updateGcControlManagementCostMaintenance(GcControlManagementCostMaintenance gcControlManagementCostMaintenance);

    /**
     * 删除管理成本维护
     * 
     * @param id 管理成本维护主键
     * @return 结果
     */
    public int deleteGcControlManagementCostMaintenanceById(Long id);

    /**
     * 批量删除管理成本维护
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteGcControlManagementCostMaintenanceByIds(Long[] ids);
}
